package androidtool.checkconvention;

/**
 *
 * @author Hoang
 *
 * Represents items in the list that can be selected Handles rendering cells in
 * the list using a check box
 */
public class CheckListItem {

    private Widget widget;
    private boolean selected;

    public CheckListItem(Widget label) {
        this.widget = label;
        this.selected = true;
    }

    public boolean isSelected() {
        return selected;
    }

    public void setSelected(boolean isSelected) {
        this.selected = isSelected;
    }

    @Override
    public String toString() {
        return ("type: " + widget.getType() + "     id: " + widget.getId());
    }
}